using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes.DomainAttributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Enums;
using System.Collections.Generic;
using System.ComponentModel;

namespace Baci.ArcGIS._IntelligenceTools._Analysis
{
    /// <summary>
    /// <para>Find Overlaps</para>
    /// <para>Finds overlapping areas in a feature class and provides a count for the number of overlaps.</para>
    /// <para>查找要素类中的重叠区域，并提供重叠数的计数。</para>
    /// </summary>    
    [DisplayName("Find Overlaps")]
    public class FindOverlaps : AbstractGPProcess
    {
        /// <summary>
        /// 无参构造
        /// </summary>
        public FindOverlaps()
        {

        }

        /// <summary>
        /// 有参构造
        /// </summary>
        /// <param name="_in_features">
        /// <para>Input Features</para>
        /// <para>The input polygon features for which overlaps will be computed.</para>
        /// <para>将计算其重叠的输入面要素。</para>
        /// </param>
        /// <param name="_out_intersection">
        /// <para>Output Intersections</para>
        /// <para>The output intersection areas.</para>
        /// <para>输出交集区域。</para>
        /// </param>
        /// <param name="_out_centroid">
        /// <para>Output Centroids</para>
        /// <para>The output centroid locations of the Output Intersections features.</para>
        /// <para>输出相交要素的输出质心位置。</para>
        /// </param>
        public FindOverlaps(object _in_features, object _out_intersection, object _out_centroid)
        {
            this._in_features = _in_features;
            this._out_intersection = _out_intersection;
            this._out_centroid = _out_centroid;
        }
        public override string ToolboxName => "Intelligence Tools";

        public override string ToolName => "Find Overlaps";

        public override string CallName => "intelligence.FindOverlaps";

        public override List<string> AcceptEnvironments => [];

        public override object[] ParameterInfo => [_in_features, _out_intersection, _out_centroid, _group_field];

        /// <summary>
        /// <para>Input Features</para>
        /// <para>The input polygon features for which overlaps will be computed.</para>
        /// <para>将计算其重叠的输入面要素。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Input Features")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _in_features { get; set; }


        /// <summary>
        /// <para>Output Intersections</para>
        /// <para>The output intersection areas.</para>
        /// <para>输出交集区域。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Output Intersections")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _out_intersection { get; set; }


        /// <summary>
        /// <para>Output Centroids</para>
        /// <para>The output centroid locations of the Output Intersections features.</para>
        /// <para>输出相交要素的输出质心位置。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Output Centroids")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _out_centroid { get; set; }


        /// <summary>
        /// <para>Group Field</para>
        /// <para>The Input Features group field.</para>
        /// <para>输入要素组字段。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Group Field")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public object _group_field { get; set; } = null;


        public FindOverlaps SetEnv()
        {
            base.SetEnv();
            return this;
        }

    }

}